<!--
 * @Author: your name
 * @Date: 2022-01-11 10:21:16
 * @LastEditTime: 2022-01-11 14:49:01
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \算法测试\day0906\对象.html
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        let obj1 = {
            a: 123,
            b: 456
        }
        function ChangeObj(object) {
            object = {
                c: 000
            };
            console.log(object);
        }
        ChangeObj(obj1);
        console.log(obj1);

        let a = [1, 2];
        let b = [1, 2];
        console.log(a == b);
        function abc() {
            while (true) {
                console.log(123);
                return 'nnn';
            }
        }
        console.log(abc());
    </script>
</body>

</html>